//
//  NSData+HBCategory.m
//  HBLibary
//
//  Created by Rambo on 2018/10/27.
//

#import "NSData+HBCategory.h"

@implementation NSData (HBCategory)

/**
 随机生成AES 128bit key
 
 @return AES key
 */
+ (NSData *)hb_random128BitAESKey{
    unsigned char buf[16];
    arc4random_buf(buf, sizeof(buf));
    return [NSData dataWithBytes:buf length:sizeof(buf)];
}

@end
